package service

import "vtrip/internal/model"

// AddTourismProjectRequest 新增旅游项目
type AddTourismProjectRequest struct {
	Name string `form:"name" binding:"required"`
}

func (svc Service) GetAllTourismProject() ([]*model.TourismProjectPart, error) {
	return svc.dao.FindAllTourismProject()
}

func (svc Service) AddTourismProject(param *AddTourismProjectRequest) error {
	return svc.dao.AddTourismProject(param.Name)
}
